import { post } from "../http"
import { get } from "../http"
import { del } from "../http"
import { put } from "../http"
export let login = async (params) => {
    let res = await post('/user/login', params)
    return res
}
export let getData = async (url, params) => {
    let res = await get(url, params)
    return res
}
export let regist = async (url, params) => {
    let res = await post(url, params)
    return res
}

export let root = async (url, params) => {
    let res = await get(url, params)
    return res
}

export let deleteItem = async (url, params) => {
    console.log("shancghu ")
    let res = await del(url, params)
    return res
}

export let text = async (url, params) => {
    let res = await put(url, params)`1`
    return res
}
export let detail = async (url, params) => {
    let res = await get(url, params)
    return res
}
// 渲染加入我们页面
export let join = async (params) => {
    let res = await get('/api/recruit/type', params)
    return res
}
export let getabout = async () => {
    let res = await get('/admin/about-us/getAboutUs')
    return res
}

